/**************************************************************************
 *
 *        Copyright (c) 2008-2008 by Sunplus mMedia Inc., Ltd.
 *
 *  This software is copyrighted by and is the property of Sunplus
 *  mMedia Inc., Ltd. All rights are reserved by Sunplus mMedia
 *  Inc., Ltd. This software may only be used in accordance with the
 *  corresponding license agreement. Any unauthorized use, duplication,
 *  distribution, or disclosure of this software is expressly forbidden.
 *
 *  This Copyright notice MUST not be removed or modified without prior
 *  written consent of Sunplus mMedia Inc., Ltd.
 *
 *  Sunplus mMedia Inc., Ltd. reserves the right to modify this
 *  software without notice.
 *
 *  Sunplus mMedia Inc., Ltd.
 *  19-1, Innovation First Road, Science-Based Industrial Park,
 *  Hsin-Chu, Taiwan, R.O.C.
 *
 **************************************************************************/
/**
 * @file		hal_gprm.h
 * @brief		hal gprm header file.
 * @author		Matt Wang
 * @since		2008-07-29
 * @date		2008-08-05
 */
#ifndef _HAL_GPRM_API_H_
#define _HAL_GPRM_API_H_

/**************************************************************************
 *                              C O N S T A N T S
 **************************************************************************/
typedef enum {
	HAL_GPRM_BUSY_RET  = 0,
	HAL_GPRM_NO_WAIT   = 1,
	HAL_GPRM_WAIT_BUSY = 2,
} HAL_GprmWaitMode_e;

/**************************************************************************
 *                  F U N C T I O N   D E C L A R A T I O N S
 **************************************************************************/
UINT8 HAL_GprmDmaCopy(UINT32 srcBaddr, UINT32 dstBaddr, UINT32 size, UINT8 waitMode);
UINT8 HAL_GprmDmaFill(UINT32 dstBaddr, UINT32 size, UINT8 fillData, UINT8 waitMode);

#endif /* _HAL_GPRM_API_H_ */

